package ph.loong.deliveryman.view;

import android.content.Context;
import android.support.annotation.Nullable;
import android.support.v7.widget.Toolbar;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.ViewGroup;

import deliveryman.loong.ph.deliveryman.R;

/**
 * Author jc.lu.
 * Dates 2018/2/23.
 * Email Tbsupland@163.com.
 * desc
 */

public class MainToolBar extends Toolbar {

    public MainToolBar(Context context, @Nullable AttributeSet attrs) {
        super(context, attrs);
        LayoutInflater.from(context).inflate(R.layout.tool_bar_main_top, this, true);
        String stringHeight = attrs.getAttributeValue("http://schemas.android.com/apk/res/android", "layout_height");
        try {
            int default_height = Integer.valueOf(stringHeight).intValue();
            if (default_height == ViewGroup.LayoutParams.WRAP_CONTENT) {
            }
        } catch (NumberFormatException e) {
        }
    }
}
